Skip to content

Instantly share code, notes, and snippets.

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp

Global Rules

Git & Deployment

  • Never set Claude as the git author. All commits must be attributed to the user only. Do not modify user.name or user.email in git config.
  • Never push to remote without explicit user approval. Always ask before running git push.
  • Never deploy via Wrangler CLI without explicit user approval. All projects use CI/CD pipelines on GitHub — manual deploys bypass the established workflow.
  • Prefer TypeScript linter checks and build verification over runtime testing when validating changes.

Parallel Execution & Subagent Strategy

@dollspace-gay
dollspace-gay / VSDD.md
Last active March 1, 2026 03:12
Verified Spec-Driven Development

Verified Spec-Driven Development (VSDD)

The Fusion: VDD × TDD × SDD for AI-Native Engineering

Overview

Verified Spec-Driven Development (VSDD) is a unified software engineering methodology that fuses three proven paradigms into a single AI-orchestrated pipeline:

  • Spec-Driven Development (SDD): Define the contract before writing a single line of implementation. Specs are the source of truth.
  • Test-Driven Development (TDD): Tests are written before code. Red → Green → Refactor. No code exists without a failing test that demanded it.
@banunatina
banunatina / microgpt.py
Created March 1, 2026 03:11 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@zhuziyi1989
zhuziyi1989 / enable_gemini.sh
Last active March 1, 2026 03:10
强制开启 Gemini in Chrome 的脚本 2026.01.29
#!/bin/bash
# 定义 Chrome Local State 文件的路径
CHROME_STATE_FILE="$HOME/Library/Application Support/Google/Chrome/Local State"
echo "🚀 开始尝试强制开启 Chrome Gemini 功能..."
# 1. 安全检查:检测 Google Chrome 是否正在运行
# 如果 Chrome 没关,修改配置文件可能会被覆盖或导致错误
if pgrep "Google Chrome" > /dev/null; then
@nommiin
nommiin / input.cpp
Created March 1, 2026 02:47
A basic shim for adding keyboard support to Minecraft Console Edition
#include "stdafx.h"
#include <Windows64\4JLibs\inc\4J_Input.h>
#include <Common\App_enums.h>
#include <Windows.h>
C_4JInput InputManager;
void C_4JInput::Initialise(int iInputStateC, unsigned char ucMapC, unsigned char ucActionC, unsigned char ucMenuActionC)